package com.atguigu.stgy.app.mapper;

import com.atguigu.stgy.model.dto.RoomInfoSearchDTO;
import com.atguigu.stgy.model.dto.RoomListSearchDTO;
import com.atguigu.stgy.model.entity.RoomInfo;
import com.atguigu.stgy.model.vo.RoomInfoVO;
import com.atguigu.stgy.model.vo.RoomListVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
//import com.atguigu.stgy.model.entity.RoomInfo;

public interface RoomInfoMapper extends BaseMapper<RoomInfo> {
    List<RoomInfoVO> selectPageItem(Page<RoomInfoVO> page, @Param("searchDTO") RoomInfoSearchDTO searchDTO);

    List<RoomListVO> pageItemByApartmentId(Page<RoomListVO> page,@Param("searchDTO") RoomListSearchDTO searchDTO);

    BigDecimal selectMinRentByApartmentId(Long apartmentId);
}